package com.sense.sensedialprehandle.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {

    @GetMapping("/test")
    public String test(){
        int i=1/0;
//        try{
//            int i=1/0;
//        }catch (Exception e){
//            throw new TestException("测试除法异常！",e);
//        }
        return "test";
    }
}
